<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<section th:if="${#lists.isEmpty(dataList)}" class="no-data__wrap">
    <span class="no-data-ico"></span>
    <p class="mt20"><span class="c-666">抱歉，还没有，试试其它的老师吧~~~</span></p>
</section>
<div class="mt10 ml10 mr10" th:if="!${#lists.isEmpty(dataList)}">
    <div class="row">
        <section class="col-sm-4" th:each="teacher : ${dataList}" th:attrappend="data-teacherId=${teacher['id']}">
            <section class="media mb20">
                <div class="media-left">
                    <a href="javascript:void(0)">
                        <img class="media-object lazy" width="80"
                             th:attrappend="data-original=!${#maps.isEmpty(teacher['imageMap'])}? ${teacher['imageMap']['pcUrlMap']['large']} :''"/>
                    </a>
                </div>
                <div class="media-body">
                    <section class="hLh20">
                        <span class="fs16 c-danger vam" th:if="${teacher[isQuestion]==1}">[问答专家]</span>
                        <a th:href="@{/web/teacher/info?teacherId={teacherId}(teacherId=${teacher['id']})}"
                           class="fs16 c-333 vam" th:text="${teacher['teacherName']}"></a>
                    </section>
                    <section class="mt20">
                        <span class="mr20 fs12 c-999" th:if="${teacher[isQuestion]==1}">
                            <i class="fa fa-question-circle"></i> 问题数
                            <span class="ml5 c-success" th:text="${teacher['questionNum']}"></span>
                        </span>
                        <span class="mr20 fs12 c-999" th:if="${teacher[isQuestion]==0}">
                            <i class="fa fa-book"></i> 课程数
                            <span class="ml5 c-success" th:text="${teacher['courseNum']}"></span>
                        </span>
                    </section>
                </div>
            </section>
        </section>
    </div>
</div>
</html>